The folder F is a MultiparmBlock(tabs)
I can call the folder
node = hou.pwd()
geo = node.geometry()
parm_group = node.parmTemplateGroup()
folder = parm_group.entries()
print folder.parmTemplates()
But I can't ergodic all parameters through this method.
folder.parmTemplates()
I have some parameters in this folder,but I get this result.
(<hou.IntParmTemplate name='parm#' label='Label' length=1 naming_scheme=Base1 default_value0,)>, <hou.FolderParmTemplate name='f#'
label='F#' folder_type=Tabs>)
I can't find the right method in help document.
Can you help me?
very thanks
Found 7 posts.
Search results Show results as topic list.
Technical Discussion » How to call folderType is TabbedMultiparmBlock?
- 达 风
- 7 posts
- Offline
Technical Discussion » How to copy geometry in python?
- 达 风
- 7 posts
- Offline
Stalkerx777
grp = geo.createPrimGroup('mygroup')
grp.add(prim)
thanks.but this is not perfect
grp.add(self.prims())
this method can merge itself.
but run this method again,will get four times
I want to get three times or five times.
this method can't do it.
I want copy original prims with the special number and ,put the output to a new group,like Copy SOP in python
Technical Discussion » How to copy geometry in python?
- 达 风
- 7 posts
- Offline
Stalkerx777
In Python SOP:
this_geo = node.geometry()
source_geo = get_geometry_somewhere()
for i in range(10):
new_geo = hou.Geometry()
new_geo.merge(source_geo)
# Do something with new_geo
this_geo.merge(new_geo)
Yes,I can use merge method to copy other sop into it.
But I have new problem.
Box —-> My Python Copy SOP
How can I realize the copy Box some times and Create Output Groups function?
=====================
And can I read the Copy SOP source,then I can get more information?
Technical Discussion » How to copy geometry in python?
- 达 风
- 7 posts
- Offline
Technical Discussion » How to copy geometry in python?
- 达 风
- 7 posts
- Offline
I create a python type Digital Assets
I want to use python to copy input geometry some times like COPY SOP.
But I can't find the right method in hou.Geometry class.
Please help,so thanks . :roll:
I want to use python to copy input geometry some times like COPY SOP.
But I can't find the right method in hou.Geometry class.
Please help,so thanks . :roll:
Technical Discussion » In SOP,how to control the speed of the object
- 达 风
- 7 posts
- Offline
I know that how to control a sphere move from here to there.
but how can I view the speed in this process.
I want to control its speed,make the variable speed,but I really don't know how to do it .
If I add a noise channel,it's only influence the displace.
the object may be move forward or backward.
I want to make the object still move forward,sometimes fast ,sometimes slowly.
Help me ,thanks everybody.
but how can I view the speed in this process.
I want to control its speed,make the variable speed,but I really don't know how to do it .
If I add a noise channel,it's only influence the displace.
the object may be move forward or backward.
I want to make the object still move forward,sometimes fast ,sometimes slowly.
Help me ,thanks everybody.
Technical Discussion » python Multi-line String
- 达 风
- 7 posts
- Offline
Hi,
In “Edit parameter interface” We can create “Multi-line String”, but I can not find how I can achieve it in python??
I read the api, find this attribute,but I don't know how to set it.
http://www.sidefx.com/docs/houdini13.0/hom/hou/StringParmTemplate [sidefx.com]
itemGeneratorScript(self) → str
Return the script used to generate menu items, or an empty string if there is no such script.
This script is used when this parm template uses a menu.
Note that if the item generator script language is hou.scriptLanguage.Python, this script may be either a single-line Python expression or a multi-line body of a Python function.
============
thanks
In “Edit parameter interface” We can create “Multi-line String”, but I can not find how I can achieve it in python??
I read the api, find this attribute,but I don't know how to set it.
http://www.sidefx.com/docs/houdini13.0/hom/hou/StringParmTemplate [sidefx.com]
itemGeneratorScript(self) → str
Return the script used to generate menu items, or an empty string if there is no such script.
This script is used when this parm template uses a menu.
Note that if the item generator script language is hou.scriptLanguage.Python, this script may be either a single-line Python expression or a multi-line body of a Python function.
============
thanks
-
- Quick Links